<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<br><br>
	<h2>错词库（目前只支持2个中文的错词）：</h2>
	<div style="background-color: #808080;border: 1px;width: 300px">	
		<c:forEach items="${verbalAssociation }" var="map">
			&nbsp;&nbsp;${map.key }&nbsp;&nbsp;&nbsp;&nbsp;==>&nbsp;&nbsp;&nbsp;&nbsp;${map.value }</br>
		</c:forEach>
	</div><br>
	<h2>菜品名首单词出现了不该出现的词：</h2>
	<div style="background-color: #808080;border: 1px;width: 300px">	
		<c:forEach items="${firstCut }" var="value">
			&nbsp;&nbsp;${value }</br>
		</c:forEach>
	</div><br>
	
	<a href="${path }/ocr-util/ocr/to_ocr">去解析菜品图片</a>
	<form id="addForm" action="${path }/ocr-util/verbalAss/add" method="post">    
	  添加错词：<input type="text" name="words" placeholder="错误词#正确词，多个以分号隔开" />
	  
		<input type="submit" value="添加">
	 </form><br><br>
	 
	 <form id="addFirstCut" action="${path }/ocr-util/verbalAss/addFirstCut" method="post">    
	  添加过滤：<input type="text" name="words" placeholder="过滤词，多个以#隔开" />
		<input type="submit" value="添加">
	 </form><br>
</body>
</html>